package cn.yitun.chat.yitunservercommonlib.converter.po2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupJoinApplyInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupJoinApplyVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupJoinApplyPo2VoConverter {
    GroupJoinApplyPo2VoConverter INSTANCE = Mappers.getMapper(GroupJoinApplyPo2VoConverter.class);

    GroupJoinApplyInfo vo2po(GroupJoinApplyVo vo);

    List<GroupJoinApplyInfo> vo2po(List<GroupJoinApplyVo> voList);

    @InheritInverseConfiguration
    GroupJoinApplyVo po2vo(GroupJoinApplyInfo info);
    @InheritInverseConfiguration
    List<GroupJoinApplyVo> po2vo(List<GroupJoinApplyInfo> infoList);
}
